import { Modal, Button, Icon } from 'antd';
import router from 'umi/router';
const InfoModal = props => {
    const { modalVisible, handleCancel } = props;

    return (
        <Modal 
					destroyOnClose={true}
					centered
					onCancel={()=>{handleCancel(false)}}
					footer={[
						<div key="footer">
							<Button onClick={() => {router.push("/compensation/indemnitySheet")}}  type="primary">确认</Button>
							<Button onClick={() => {handleCancel(false)}}>取消</Button>
						</div>
					]}
					width={430}
					title={[
						<div key="title" style={{textAlign: "center"}}>提示</div>
					]}
					visible={modalVisible}
        >
					<div style={{ fontSize: "18px", fontWeight: "bold"}}><Icon style={{color: "#faad14", fontSize: "24px", marginRight: "10px"}} type="question-circle" />关闭将不保存补偿单数据, 确认关闭吗？</div>
        </Modal>
    )
}

export default InfoModal